import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'dart:math';

import 'package:fluttertoast/fluttertoast.dart';


class CommonUtils {

  static void toast(String msg, { String gravity = 'center' }) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: Toast.LENGTH_LONG,
        gravity: gravity == 'center' ? ToastGravity.CENTER : ToastGravity.BOTTOM,
        timeInSecForIosWeb: 1,
        backgroundColor: Color(0xff979797),
        textColor: Colors.white,
        fontSize: 16.0);
  }
}


